/**
 * 功能:TK_REGIONS Service类
 * 开发人员:yaren
 * 创建时间:2012/4/21 23:50:11
 */
package com.towker.frame.service.basicData;

import org.springframework.stereotype.Service;
import com.towker.core.db.EntityDao;
import com.towker.core.db.BaseService;
import com.towker.frame.model.basicData.Regions;
import com.towker.frame.dao.basicData.RegionsDao;

@Service
public class RegionsService extends BaseService<Regions, java.lang.Long>
{
	private RegionsDao dao;
	
	public void setRegionsDao(RegionsDao dao)
	{
		this.dao = dao;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected EntityDao getEntityDao()
	{
		return this.dao;
	}

	public boolean checkExistsCode(String region_code, Integer id) {
		return dao.checkExistsCode(region_code, id);
	}
}
